package com.dries.security.core.social.view;

import org.springframework.web.servlet.view.AbstractView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * @Description:
 * @Author ZSY
 * @createTime 2020/9/17 14:47
 */
public class DriesConnectView extends AbstractView {
    @Override
    protected void renderMergedOutputModel(Map<String, Object> map, HttpServletRequest request, HttpServletResponse response) throws Exception {
        response.setContentType("text/html;charset=UTF-8");

        if (map.get("connection") == null) {
            response.getWriter().write("<h3>解绑成功</>");
        }else {
            response.getWriter().write("<h3>已绑定</>");
        }
    }
}
